package com.demo.mybatis_plus.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.apache.ibatis.annotations.ResultMap;

import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
// 驼峰命名法
@TableName("pet_reservation") // 表名
public class Reservation {
    @TableId(type = IdType.AUTO) // 主键 类型为自动递增
    private Integer id;
    /**
     * 客户编号
     */
    private Integer uid;
    private Integer petId;
    private String reason;
    private String reserveTime;
    private Integer status; // 枚举
    private Date createTime;
    private Date updateTime;
    /**
     * 客户信息
     */
    @TableField(exist = false)
    private Userinfo userinfo;

}
